//
//  YFStarVideoCell.m
//  SquashSpark
//
//  Created by Coollang on 2017/11/4.
//  Copyright © 2017年 Coollang-YF. All rights reserved.
//

#import "YFStarVideoCell.h"
#import "CoachVideo.h"
#import <SDWebImage/UIImageView+WebCache.h>

@interface YFStarVideoCell()
@property (weak, nonatomic) IBOutlet UIImageView *previewImageview;
@property (weak, nonatomic) IBOutlet UILabel *videoNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *videoContentLabel;
@property (weak, nonatomic) IBOutlet UILabel *videoTimeLabel;

@end

@implementation YFStarVideoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setVideoModel:(CoachVideo *)videoModel{
    _videoModel = videoModel;
    [self.previewImageview sd_setImageWithURL:[NSURL URLWithString:videoModel.preview] placeholderImage:kPlaceholdImage];
    self.videoNameLabel.text = videoModel.name;
    self.videoContentLabel.text = videoModel.content;
    self.videoTimeLabel.text = videoModel.duration;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
